package com.zcgk.modules.file.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcgk.modules.file.entity.AttachmentEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 附件表Mapper 接口
 * </p>
 *
 * @author Francis
 * @since 2020-02-20
 */
public interface AttachmentMapper extends BaseMapper<AttachmentEntity> {

    /**
     * 【新系统用】根据 资源Id 获取文件url映射路径list。如： /file/tf/uuid.jpg
     *      该接口主要用于图片预览
     *
     * @param resId 资源id
     * @param systemId 系统id
     * @param tableName 资源id
     * @return 文件urlList
     */
    List<String> queryUrlListByResId(@Param("resId") String resId, @Param("systemId") String systemId,
                                     @Param("tableName") String tableName);
}
